<?php

namespace App\Http\Requests\Admin;


use App\Http\Requests\FormRequest;

class RoleStoreRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'name' => 'required|string|max:20',
            'slug' => 'required|string|max:20',
            'menus' => 'required|array',
            'menus.*' => 'required|integer',
        ];
    }
}
